//
//  StockContext.h
//  Stock
//
//  Created by blacksun on 11-6-23.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyStock.h"
#import "Section.h"

@interface StockContext : NSObject {
    int workingStock;
    NSString *userId;
    NSArray *sections;
    NSMutableArray *remoteMyStocks;
    BOOL isFavorite;
    NSArray *updateTimes;
}

@property(nonatomic, assign) int workingStock;
@property(nonatomic, retain) NSMutableArray *remoteMyStocks;
@property(nonatomic, retain) NSArray *sections;
@property(nonatomic, retain) NSString *userId;
@property(nonatomic, assign) BOOL isFavorite;
@property(nonatomic, retain) NSArray *updateTimes;

-(int)findMaxIndexWithSectionId:(NSString *)sectionId;
+(StockContext *)shareInstance;
-(MyStock *)findRemoteStockWithStockId:(NSString *)stockId;
@end
